<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<table>
	<tr>
		<td><img src="icon" width="64" height="64" /></td>
		<td style="vertical-align:middle;"><h2 style="margin: 0px;">${app.nazev}</h2></td>
	</tr>
</table>


<table class="imagetable">
	<tbody>
		<tr>
			<th>Tagy</th>
			<td>${app.tags}</td>
		</tr>
		<tr>
			<th>Popis</th>
			<td>${app.popis}</td>
		</tr>
		<tr>
			<th>Počet stažení</th>
			<td>${app.pocetStazeni}</td>
		</tr>
		<tr>
			<th>Hodnocení</th>
			<td>${app.hod}/5 
				<c:forEach var="num" begin="1" end="5" step="1">
				<a href="rate/${num}" style="outline: none;"><c:choose><c:when test="${app.getHod()>=num}"><img src="${pageContext.request.contextPath}/resources/star_full.png"></c:when><c:otherwise><img src="${pageContext.request.contextPath}/resources/star_empty.png"></c:otherwise></c:choose></a>
				</c:forEach>
			</td>
		</tr>		
	</tbody>
	<tfoot>
		<tr>
			<th>Stažení</th>
			<td colspan="2"><a href="content" >Stažení</a></td>
		</tr>
	<tfoot>	
</table>

